package com.qingke.qkmall.dao;

import java.util.List;

import com.qingke.qkmall.pojo.Book;
import com.qingke.qkmall.pojo.Clothes;
import com.qingke.qkmall.pojo.Food;
import com.qingke.qkmall.pojo.Shop;
import com.qingke.qkmall.pojo.ShopQueryVo;

public interface ShopMapper {
	
	//添加商品
	int insertShop(ShopQueryVo bsqv);
	
	int insertBook(ShopQueryVo bsqv);
	
	int insertClothes(ShopQueryVo bsqv);
	
	int insertFood(ShopQueryVo bsqv);
	
	//根据类别id查找商品
	//List<Shop> selectShopByCategoryId(int categoryId);

	Shop selectShopById(int id);
	
	//查询所有商品
	List<Shop> selectAllShop(Integer categoryId);
	
	Book selectBookByShopId(int shopId);
	
	Clothes selectClothesByShopId(int shopId);
	
	Food selectFoodByShopId(int shopId);
	
	//通过名字查询商品
	Shop selectShopByName(String shopName);
	
	int deleteShop(int id);
}